Page({
  editHouse() {
    wx.navigateTo({
      url: '/house_pkg/pages/form/index?id=' + this.data.id,
    })
  },
  data: {
    list: []
  },
  onLoad(option) {
    this.getList(option.id)
    this.data.id = option.id
  },
  async getList(id) {
    const { data } = await await wx.http.get('/room/' + id)
    // console.log(res);
    this.setData({
      list: data
    })
  }
})
